This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
But i've just copy&paste to my server :-)
================================================
#!/bin/sh
#
# chkconfig: 345 95 5
# description: questo script è usato per attivare il server Domino come processo in background
#
# Usare /etc/init.d/domino start|stop|status|restart
# Questo script prende spunto dallo script originale di IBM, con alcune personalizzazioni
# le 3 variabili descritte di seguito devono essere impostate in base all'installazione dell'ambiente.
# DOM_HOME è la variabile che indica allo script dove è situata la notesdata
DOM_HOME=/usr/local/notesdata
# DOM_USER è l'account Linux usato per far girare il server Domino
DOM_USER=domino85
# DOM_PROG è il folder dove sono situati gli eseguibili di Domino
DOM_PROG=/opt/ibm/lotus/bin
# Source function library
. /etc/rc.d/init.d/functions
# Set the prog variable for the status line of the code
prog=$DOM_PROG/server
# Does the lock file exist?
config () {
if [ -f $DOM_HOME/.jsc_lock ]; then
rm -f $DOM_HOME/.jsc_lock
fi
}
# Start del server
start() {
echo -n "Starting Domino server: "
config
cd $DOM_HOME
su - $DOM_USER -c "$DOM_PROG/server > /dev/null 2>&1
&"
sleep 5
return 0
}
# Stop del server
stop() {
echo -n "Stopping Domino server: "
su - $DOM_USER -c "$DOM_PROG/server -q"
echo ''
sleep 5
return 0
}
# Restart del server
restart() {
echo -n "Beginning restart script..."
su - $DOM_USER -c "$DOM_PROG/server -q"
echo ''
sleep 5
echo -n "Starting Domino Server..."
config
cd $DOM_HOME
su - $DOM_USER -c "$DOM_PROG/server > /dev/null 2>&1 &"
sleep 5
echo ''
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
status)
status $prog
;;
*)
echo "Usage: domino {start|stop|status|restart}"
exit 1
esac
=============================
Feedback response number WEBB82YJH4 created by ~Hal Preponeman on 02/24/2010